From e8203d607aa0294ebcb95a0567adaa72f0792fd2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sat, 7 May 2005 07:23:46 +0000 Subject: [PATCH] * Changing the personal urls to use the format Special:Page/Paramater rather than ?title=Special:Page&target=Paramater --- includes/SkinTemplate.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 6f71eaa418..049d2a4e15 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -442,7 +442,7 @@ class SkinTemplate extends Skin { ); $personal_urls['mycontris'] = array( 'text' => wfMsg('mycontris'), - 'href' => $this->makeSpecialUrl('Contributions','target=' . urlencode( $this->username ) ) + 'href' => $this->makeSpecialUrl("Contributions/$this->username") ); $personal_urls['logout'] = array( 'text' => wfMsg('userlogout'), @@ -609,7 +609,7 @@ class SkinTemplate extends Skin { $content_actions['move'] = array( 'class' => ($this->mTitle->getDbKey() == 'Movepage' and $this->mTitle->getNamespace == NS_SPECIAL) ? 'selected' : false, 'text' => wfMsg('move'), - 'href' => $this->makeSpecialUrl('Movepage', 'target='. urlencode( $this->thispage ) ) + 'href' => $this->makeSpecialUrl("Movepage/$this->thispage" ) ); } } @@ -620,7 +620,7 @@ class SkinTemplate extends Skin { $content_actions['undelete'] = array( 'class' => false, 'text' => ($n == 1) ? wfMsg( 'undelete_short1' ) : wfMsg('undelete_short', $n ), - 'href' => $this->makeSpecialUrl('Undelete/'.$this->thispage) + 'href' => $this->makeSpecialUrl("Undelete/$this->thispage") ); } } @@ -776,8 +776,12 @@ class SkinTemplate extends Skin { $nav_urls['specialpages'] = array('href' => $this->makeSpecialUrl('Specialpages')); if( $this->mTitle->getNamespace() != NS_SPECIAL) { - $nav_urls['whatlinkshere'] = array('href' => $this->makeSpecialUrl('Whatlinkshere', 'target='.urlencode( $this->thispage))); - $nav_urls['recentchangeslinked'] = array('href' => $this->makeSpecialUrl('Recentchangeslinked', 'target='.urlencode( $this->thispage))); + $nav_urls['whatlinkshere'] = array( + 'href' => $this->makeSpecialUrl("Whatlinkshere/$this->thispage") + ); + $nav_urls['recentchangeslinked'] = array( + 'href' => $this->makeSpecialUrl("Recentchangeslinked/$this->thispage") + ); } if( $this->mTitle->getNamespace() == NS_USER || $this->mTitle->getNamespace() == NS_USER_TALK ) { @@ -790,7 +794,7 @@ class SkinTemplate extends Skin { if($id || $ip) { # both anons and non-anons have contri list $nav_urls['contributions'] = array( - 'href' => $this->makeSpecialUrl('Contributions', "target=" . $this->mTitle->getPartialURL() ) + 'href' => $this->makeSpecialUrl('Contributions/' . $this->mTitle->getText() ) ); } else { $nav_urls['contributions'] = false; @@ -798,7 +802,7 @@ class SkinTemplate extends Skin { $nav_urls['emailuser'] = false; if( $this->showEmailUser( $id ) ) { $nav_urls['emailuser'] = array( - 'href' => $this->makeSpecialUrl('Emailuser', "target=" . $this->mTitle->getPartialURL() ) + 'href' => $this->makeSpecialUrl('Emailuser/' . $this->mTitle->getText() ) ); } wfProfileOut( $fname ); -- 2.20.1